package com.baox.agridata.synchronous.service.shanxi.impl;

import com.baox.agridata.synchronous.dao.shanxi.TBASEDesignatedPigSlaughteringCompanyMapper;
import com.baox.agridata.synchronous.entity.quanguo.McSzqyxx;
import com.baox.agridata.synchronous.entity.shanxi.TBASEDesignatedPigSlaughteringCompany;
import com.baox.agridata.synchronous.service.shanxi.TBASEDesignatedPigSlaughteringCompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TBASEDesignatedPigSlaughteringCompanyServiceImpl implements TBASEDesignatedPigSlaughteringCompanyService {


    @Autowired
    private TBASEDesignatedPigSlaughteringCompanyMapper tbaseDesignatedPigSlaughteringCompanyMapper;


    @Override
    public Map getBASEDesignatedPigSlaughteringCompany(String SlaughterMid) {
        return tbaseDesignatedPigSlaughteringCompanyMapper.getBASEDesignatedPigSlaughteringCompany(SlaughterMid);
    }

    @Override
    public Integer checkBASEDesignatedPigSlaughteringCompanyIsExist(String mid) {
        return tbaseDesignatedPigSlaughteringCompanyMapper.checkBASEDesignatedPigSlaughteringCompanyIsExist(mid);
    }

    @Override
    public Integer batchInsertDesignatedPigSlaughteringCompany(List<TBASEDesignatedPigSlaughteringCompany> list) {
        return tbaseDesignatedPigSlaughteringCompanyMapper.batchInsertDesignatedPigSlaughteringCompany(list);
    }

    @Override
    public Integer updateTBASEDesignatedPigSlaughteringCompany(McSzqyxx mcSzqyxx) {
        return tbaseDesignatedPigSlaughteringCompanyMapper.updateTBASEDesignatedPigSlaughteringCompany(mcSzqyxx);
    }
}
